from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings

# 获取项目设置
settings = get_project_settings()

# 创建爬虫进程
process = CrawlerProcess(settings)
"""
    运行指定的爬虫 
        xueqiu_stock 股票列表 
        xueqiu_klines 股票k线 
        xueqiu_fundholding 股票基金持有
"""

process.crawl('xueqiu_stock')  # 'quotes'是爬虫的name

# 开始爬取
process.start()

